﻿@model AuditWeb.Models.AdminArchiveModel

@{
    ViewBag.Title =AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
    IEnumerable<AuditModel.sp_GetCandidateQuotas_Result> CandidateStatistics = ViewBag.CandidateStatistics;
}

<h2>参赛档案统计</h2>
<div class="padding_panel">
@using(Html.BeginForm("Archives"))
{
    @Html.Hidden("id", Model.AnnualEventId)
    @AuditResources.Subject.ObjectName<text>:</text> @Html.DropDownList("SubjectId",AuditResources.UI.All) <text>&nbsp;</text>
    @AuditResources.County.ObjectName<text>:</text> @Html.DropDownList("CountyCode", AuditResources.UI.All) <text>&nbsp;</text>
     <input type="submit" value="@AuditResources.UI.Search" /> 
}
</div>
<div class="padding_panel">  参赛档案汇总： <strong>@ViewBag.ArchivesCount</strong>/<strong>@ViewBag.CandidateQuota</strong> （已有/应有）</div>
<table>
    <tr>
        <th>
            @AuditResources.County.ObjectName
        </th>
        <th>
            @AuditResources.Subject.ObjectName
        </th>
        <th>
            已有人数
        </th>
        <th>
            应有人数
        </th>
    </tr>

@foreach (var item in CandidateStatistics)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CountyName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SubjectName)
        </td>
          <td>
            @Html.DisplayFor(modelItem => item.Total)
        </td>
         <td>
            @Html.DisplayFor(modelItem => item.Quota)
        </td>

    </tr>
}
<tr style="font-weight:bold"><td colspan="2" style="text-align:center">总计</td><td>@ViewBag.ArchivesCount</td><td>@ViewBag.CandidateQuota</td></tr>
</table>
